package com.slg.mybatis.entity;


import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Student {

  private Long id;
  // db  name  使用mybatis框架时 如果向自动完成结果集的映射 需要保证属性名和数据库中的字段名保持一致
  private String name;
  private Long age;
  private Double weight;

  //  stu_sex   --驼峰命名映射->  stuSex
  private String stuSex;

}
